const http = require('http');
const url = require('url');

let server = http.createServer((request, response) => {
	let {pathname, query} = url.parse(request.url, true);

	console.log(pathname);
	console.log(query);
	response.end();
})

server.listen(8080);